# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=sane-gt68xx-firmware
pkgver=1.0
pkgrel=9
pkgdesc="gt68xx-based scanners firmwares"
arch=(any)
license=('GPL')
url="http://www.meier-geinitz.de/sane/gt68xx-backend/"
depends=(sane)
source=("cism216.fw::http://bugs.archlinux.org/task/20374?getfile=5563"
	http://subfusion.net/drivers/oslo3071b2.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/A1fw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/A2Dfw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/A2Nfw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/A2fw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/P9fw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/PS1Dfw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/PS1Gfw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/PS2Dfw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/PS2Dfw2.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/SBSfw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/a32fw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/ps1fw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/ps2fw.usb
	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/sbfw.usb)
sha512sums=('36ac5153aae639805d6d81fa9fde1e739518111e4b21fe1e15fe1502565292f47609357b9724a53f0c7aa3941aeec7af027d357fcf1436f4d3c709706caaf7f5'
            '6d6437381581acf3e7becb1ca965a2a1592021bc370af4ac1d1578bcdd4ec744745d5e5883c260b8bc8718aed85e18ca773f25b85f3cb85a00a01f9cfc49c26a'
            '5d93bc894ea5e075ca1b80417ad8c678c2479fa80125625576b9b93403d5012383cd820092aca5e0b2f89144226b665c89afa27521666576e9ce82eaaf0df2ec'
            'a0161bc419d90f0a9a6e4dcf054996f402cd51f4b660fc865bcdbc683defff5cf400db96124b259a77be33b1b3810c7f7483a81b6bbe77591e577976233c0f57'
            'ef12c44ef5c182584edb12d83f80632091c40e9b1e367a5a4d8a5b715f88e6b7aed7b00fb8e8f2da8c9656ec17723c441b0ddacc55599ee07013d428c9fd2cdb'
            '2177d2d2f310ebe9d56bf629ba99965dd999a5e4c20145d1a6277a6aea3bd66f69afb45e2e9a15b0ed545e0aa874de8175035a521b623aa2f6b64c0f18b662d8'
            'f7121ea81bd813df0bbe1d435eceaac30f6d2bb49aa43fdd40632f12ad7dae16f895697dc51b3a4490c26d38dbcd55a414e2df866d8a62a6f63d479053900601'
            'cec04c04b16f0a91280badea4ac47ba29e6eb608e15c550b440769b05882f072d13a406c53b8908ffa068a035f8635f66b3a7756cf15521f4979b35a76f38481'
            '9e2c773a3f74005184e8dbbf2f7874a606c3492251f7d012097b673e73880bfe33fdf7879d917853eed7fe95f5335c80f57618dbf03777c325e63da23d1111e5'
            '8d18055b33d21f36b54444a0d563d0363283e7b557b723ee5953d9e81b2e91b7d85161ceafc830981db53dc1f2e22685fb03ec57713d15704a783507fcc9e9dc'
            '658b8f2b8b1cccdde6a569601a4ce7c340be90ae54dd8cc801ba0bb3231be28eaaa715f401ad2add8e729d71d7c7caf62fce4bc4d8fb0db66e19f5f7fdbf76d8'
            '7b96154a3f39779b75bc75b4dc67eccb1f6bb71734aaec9ef6ca84447d49c07b43ae38c988c0c0ac28e2a2b5452263d9bfdcf2e4f653dec4ce28999a1213f8d6'
            '41445b1d8db0ec83eabd5e2f5ab172183d74ae5bd59d5c5b749dbf4b2a2ee30a9795d9ebca3fb5e95cdf4309dfb4e78cf149a7cecc90665e4b414358bb62d316'
            'a7a3c6aa83a0be74b7ed102545d0708ffdb9a7e25026c0f17b2b270d113d56261f951610052ea0cd0db69c0db453250eafa1bd333edaee3997c66e32bc69bd1a'
            '7a100812a656c45970362061ae8e41e4b9f03607770d0bcff98d851b23e8bfd94dd7b794b3b99732fe57fb17c6d0c422f24e04aaad77b1cc3092f9a9c8f0b756'
            '6bf35dcaa7dbc7a9ee26577cc933211242c03602ff427a18e10a0e7d84e015423a612bdcfc8be8d4ca059bd29e66b7daf79cf8e106ecd7dcb29a8a5df755dabb')

package() {
  cd "$srcdir"
  install -d -m0755 "$pkgdir"/usr/share/sane/gt68xx/
  install -m0644 *.usb "$pkgdir"/usr/share/sane/gt68xx/
  install -m0644 *.fw "$pkgdir"/usr/share/sane/gt68xx/
}
